package com.zd.service.lmpl;/**
 * @Description: TailafterServicelmpl
 * @Author:pioneer
 * @Date: 2021-07-01
 * @Version:v1.0
 */

import com.zd.mapper.TailafterMapper;
import com.zd.service.lnter.TailafterServicelnter;
import com.zzg.entity.Tailafter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: TailafterServicelmpl
 * @Author:pioneer
 * @Date: 2021-07-01
 * @Version:v1.0
 */
@Service
public class TailafterServicelmpl implements TailafterServicelnter {

    @Autowired
    private TailafterMapper tailafterMapper;
    /**
     * 通过id进行跟踪查询
     *
     * @param waybillId 运单单号
     * @return 跟踪对象
     */
    @Override
    public Tailafter idquery(String waybillId) {
        return tailafterMapper.idquery (waybillId);
    }

    /**
     * 增加跟踪查询
     *
     * @param tailafter 跟踪对象
     * @return 返回数值判断是否添加成功
     */
    @Override
    public int increasetailafter(Tailafter tailafter) {
        return tailafterMapper.increasetailafter (tailafter);
    }

    /**
     * 进行跟踪查询
     * @return 跟踪集合
     */
    @Override
    public List<Tailafter> getTailafterByid() {
        return tailafterMapper.getTailafterByid ();
    }
}
